package com.weetop.akly.adapter;

import android.content.Context;
import android.support.annotation.NonNull;
import android.widget.TextView;

import com.classic.adapter.BaseAdapterHelper;
import com.classic.adapter.CommonAdapter;
import com.weetop.akly.R;

import java.util.ArrayList;

public class TypeAdapter extends CommonAdapter<String> {
   private ArrayList<String> data=new ArrayList<>();

    public TypeAdapter(@NonNull Context context, ArrayList<String> data1) {
        super(context, R.layout.sp_text, data1);
        this.data = data1;
    }

    @Override
    public void onUpdate(BaseAdapterHelper helper, String item, int position) {
        TextView textView=helper.getView(R.id.textView);
        textView.setText(item);
    }
}
